<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Unit Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="jslib/jquery-easyui-1.3.1/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="jslib/jquery-easyui-1.3.1/jquery.easyui.min.js"></script>
<script type="text/javascript" src="jslib/jquery-easyui-1.3.1/locale/easyui-lang-en.js"></script>
<script type="text/javascript" src="jslib/tools.js"></script>
<link rel="stylesheet" href="jslib/jquery-easyui-1.3.1/themes/gray/easyui.css" type="text/css"></link>
<link rel="stylesheet" href="jslib/jquery-easyui-1.3.1/themes/icon.css" type="text/css"></link>
</head>
<script type="text/javascript">
	$(function() {
		$('#SvnRepositories_panel').panel({
		    title:'Svn Repositories',
		    tools:[{
		        iconCls:'icon-add',
		        handler:function(){alert('new')}
		    },{
		        iconCls:'icon-save',
		        handler:function(){alert('save')}
		    }]
		}); 
		
		$('#SvnRepositories_tree').tree({
		    url:'svnController/getSvnRepositoriesDir.do',
		    onClick : function(node) {
		    	console.info(node);
		    }
		});
	});
	
	function initMenuTree() {
		$('#SvnRepositories_tree').tree({
			lines : true,
			//parentField : 'pid',
			url : 'tree.json',
			onLoadSuccess : function(node, data) {
				$(this).tree('collapseAll');
				//treeMenuData = data;
			},
			onClick : function(node) {
				if (node.attributes.url && node.attributes.url != '') {
					var url = '${pageContext.request.contextPath}' + node.attributes.url;
					addTab({
						title : node.text,
						href : url,
						closable : true
					});
				} else {
					if (node.state == 'closed') {
						$(this).tree('expand', node.target);
					} else {
						$(this).tree('collapse', node.target);
					}
				}
			}
		});
	}
</script>
<body>
<div id="SvnRepositories_panel" style="padding:10px;">
   <ul id="SvnRepositories_tree"></ul>
</div>
 

</body>
</html>